package com.carter.springframework.context.support;

import com.carter.springframework.beans.factory.support.DefaultListableBeanFactory;

/**
 * 具体对外给用户提供的应用上下文方法
 */
public class ClasspathXmlApplicationContext extends AbstractXmlApplicationContext {
    private String[] configLocations;

    public ClasspathXmlApplicationContext() {
        this("classpath:spring.xml");
    }

    public ClasspathXmlApplicationContext(String configLocation) {
        this(new String[]{configLocation});
    }
    public ClasspathXmlApplicationContext(String[] configLocations) {
        this.configLocations = configLocations;
        refresh();
    }


    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }

    @Override
    public <T> T getBean(Class<T> requiredType) {
        return null;
    }
}
